﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CopySniffer.FileLoad
{
    public class TextFileLoader : IFileLoader
    {
        private readonly string[] supportedExtensions = { "txt" };

        #region IFileLoader Members

        public IEnumerable<string> SupportedExtensions
        {
            get { return supportedExtensions; }
        }

        public string TypeAlias
        {
            get { return "Text File"; }
        }

        public string LoadFile(string fileName)
        {
            return File.ReadAllText(fileName);
        }

        #endregion
    }
}
